-
Notifications
You must be signed in to change notification settings - Fork 24
Балашов Ярослав, М3335 #5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
This pull request is automatically deployed with Now. Latest deployment for this branch: https://task-5-git-fork-breakchir-master.itmo-yandex.now.sh |
| ], | ||
| "dependencies": { | ||
| "@bem-react/classname": "1.5.0", | ||
| "@types/classnames": "2.2.7", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@types должны быть в `devDependencies
| "@types/react-dom": "16.8.4", | ||
| "@types/react-window": "1.8.0", | ||
| "@types/recompose": "0.30.6", | ||
| "classnames": "2.2.6", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bem-react/classnames
| "classnames": "2.2.6", | ||
| "react": "16.8.6", | ||
| "react-dom": "16.8.6" | ||
| "react-cookie": "3.1.2", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| "react": "16.8.6", | ||
| "react-dom": "16.8.6" | ||
| "react-cookie": "3.1.2", | ||
| "react-cookies": "0.1.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Удали лишние зависимости
| "devDependencies": { | ||
| "@hellroot/eslint-config": "1.8.0", | ||
| "@hellroot/stylelint-config": "1.1.0", | ||
| "bemify": "0.1.2", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Удали лишнее
| "build": "react-scripts build", | ||
| "eject": "react-scripts eject", | ||
| "lint": "npm-run-all lint:*", | ||
| "lint:js": "eslint '**/*.{js,jsx}'", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
eslint "**/*.{js,jsx}"
| "dev": "react-scripts start", | ||
| "test": "react-scripts test", | ||
| "build": "react-scripts build", | ||
| "eject": "react-scripts eject", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
YAGNI
| cursor: pointer; | ||
| } | ||
|
|
||
| .box:after { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Псевдоклассы пишутся с ::
| @@ -0,0 +1,29 @@ | |||
| import React from 'react'; | |||
| import pure from 'recompose/pure'; | |||
| import cx from 'classnames'; | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Обычно сокращают до cn
| }; | ||
|
|
||
| render() { | ||
| console.log('MailApp'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
console.log надо удалять перед пушем
| constructor(props: {}) { | ||
| super(props); | ||
| this.state = { | ||
| theme: this.initTheme(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Вместо глубокого прокидывания пропсов лучше воспользуйся
https://reactjs.org/docs/context.html
Выбрал 2.1 и 3.1
Поиск в процессе совершенствования
Работает кодовое слово "темная тема"